<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>报名失败 - 志愿服务管理系统</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
  <style>
    :root {
      --success-color: #4CAF50;
      --success-light: #E8F5E9;
      --text-primary: #212121;
      --text-secondary: #757575;
    }

    body {
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      background: linear-gradient(135deg, var(--success-light) 0%, #ffffff 100%);
      min-height: 100vh;
      margin: 0;
      padding: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .success-container {
      background: white;
      border-radius: 16px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
      padding: 2rem;
      text-align: center;
      max-width: 600px;
      width: 100%;
    }

    .success-icon {
      color: var(--success-color);
      font-size: 4rem;
      margin-bottom: 1rem;
    }

    .success-title {
      color: var(--success-color);
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .success-message {
      color: var(--text-secondary);
      font-size: 1.1rem;
      margin-bottom: 2rem;
    }

    .activity-details {
      background: var(--success-light);
      padding: 1.5rem;
      border-radius: 12px;
      margin-bottom: 2rem;
      text-align: left;
    }

    .activity-details h3 {
      color: var(--text-primary);
      font-size: 1.2rem;
      margin-bottom: 1rem;
    }

    .detail-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      color: var(--text-secondary);
    }

    .btn-action {
      margin: 0.5rem;
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .btn-action:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
  </style>
</head>
<body>
<div class="success-container">
  <i class="fas fa-check-circle success-icon"></i>
  <h1 class="success-title">报名失败！</h1>
  <p class="success-message" th:text="${errmsg}">请勿重复报名</p>

<!--  <div class="activity-details">-->
<!--    <h3>活动信息</h3>-->
<!--    <div class="detail-item">-->
<!--      <i class="fas fa-bookmark"></i>-->
<!--      <span>活动名称：</span>-->
<!--      <span th:text="${activity.activityName}"></span>-->
<!--    </div>-->
<!--    <div class="detail-item">-->
<!--      <i class="fas fa-calendar"></i>-->
<!--      <span>开始时间：</span>-->
<!--      <span th:text="${#dates.format(activity.startTime, 'yyyy-MM-dd HH:mm')}"></span>-->
<!--    </div>-->
<!--    <div class="detail-item">-->
<!--      <i class="fas fa-clock"></i>-->
<!--      <span>持续时间：</span>-->
<!--      <span th:text="${activity.sustain + '小时'}"></span>-->
<!--    </div>-->
<!--    <div class="detail-item">-->
<!--      <i class="fas fa-map-marker-alt"></i>-->
<!--      <span>活动地点：</span>-->
<!--      <span th:text="${activity.activityAddress}"></span>-->
<!--    </div>-->
<!--  </div>-->

  <div class="actions">
    <a href="/myActivity" class="btn btn-primary btn-action">
      <i class="fas fa-list me-2"></i>查看我的活动
    </a>
    <a href="/toUserPage" class="btn btn-outline-primary btn-action">
      <i class="fas fa-home me-2"></i>返回首页
    </a>
  </div>
</div>
</body>
</html>